"use strict";
import React, { Component } from "react";
import { StaticRouter,HashRouter} from "react-router-dom";
// import Static from "./static";
// import axios from "axios";
// import Handline from "./headline";
import Applist from "./applist";
// const newUrl =
//   "http://newsapi.org/v2/top-headlines?country=us&apiKey=209cd02e74314a32a4e5f1d5b9cbdff1";

const Router: any = __CLIENT__ ? HashRouter : StaticRouter;
export default class List extends Component {
  static getInitData(){
    return "list";
  }
  render() {
    return (
      <div>
        <h1> Simple Usage</h1>

        <Router >
          <Applist />
        </Router>
      </div>
    );
  }
}
